package com.factory.iamp.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class UserName {
    private String uid;
    private String username;
    private String realname;

    UserName(User user) {
        this.uid = user.getUid();
        this.username = user.getUsername();
        this.realname = user.getRealname();
    }
}
